package com.park.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.park.model.OperaotorAttendanceRecord;

@Repository
public interface OperaotorAttendanceRecordMapper {

	int insert(OperaotorAttendanceRecord oar);

	OperaotorAttendanceRecord select(@Param("account")String account);

	int update(OperaotorAttendanceRecord oar);

	List<OperaotorAttendanceRecord> selectV1(@Param("operatorName")String operatorName, @Param("account")String account, @Param("parkId")int parkId, @Param("loginStatus")int loginStatus,
			@Param("logoutStatus")int logoutStatus, @Param("loginStart")String loginStart, @Param("loginEnd")String loginEnd, @Param("logoutStart")String logoutStart, @Param("logoutEnd")String logoutEnd, @Param("startPage")int i, @Param("pageSize")int pageSize);

	int selectCount(@Param("operatorName")String operatorName, @Param("account")String account, @Param("parkId")int parkId, @Param("loginStatus")int loginStatus,
			@Param("logoutStatus")int logoutStatus, @Param("loginStart")String loginStart, @Param("loginEnd")String loginEnd, @Param("logoutStart")String logoutStart, @Param("logoutEnd")String logoutEnd);

}
